<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
</body>
<script type="text/javascript" src="js/JnPakg.js"></script>
<script type="text/javascript">
(function(){
	dw("11_只有function对象才能new.html");
})();

var A = {}
var B = function(){};
var C = new B();

try{
	var a = new A(); 
}catch (e) {
	dw("var a = new A; //出错" + e.message );
}

try{
	A.prototype.ax = 5;
}catch (e) {
	dw("A.prototype.ax = 5; //出错" + e.message);
}

try{
	A.ax = 5;
}catch (e) {
	dw("A.ax = 5; //出错" + e.message);
}

try{
	var c = new C(); 
}catch (e) {
	dw("var c = new C();  //出错" + e.message);
}

try{
	C.prototype.ax = 5;
}catch (e) {
	dw("C.prototype.ax = 5; //出错" + e.message);
}

try{
	C.ax = 5;
}catch (e) {
	dw("C.ax = 5; //出错" + e.message);
}
</script>
</html>